// 频道请求模块
import request from '../uilts/request'
// 请求获取所以频道列表数据
export const getAllChannels = () => {
        return request({
            method: 'GET',
            url: '/v1_0/channels'
        })
    }
    // 请求添加用户频道
export const addUserChannel = (channel) => {
        return request({
            method: 'PATCH',
            url: '/v1_0/user/channels',
            data: {
                channels: [channel]
            }
        })
    }
    // 请求删除用户频道
export const deletedUserChannel = (channelID) => {
    return request({
        method: 'DELETE',
        url: `/v1_0/user/channels/${channelID}`
    })
}